<template>
  <div>
    {{grade}}
    <table>
      <tr>
        <td>年级</td>
        <td>课程</td>
      </tr>
      <tr v-for="i in grade">
        <td >{{i.name}}</td>
        <td>
          <table>
            <tr>
              <td v-for="j in i.classs">{{j.name}}</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  name: "day105_show",
  data() {
    return {
      grade:[],

    }
  },
  methods: {
    get_grade(){
      this.$axios.get('teacher/grade/').then(res=>{
        this.grade =res.data.list
      })
    }
  },
  mounted() {
    this.get_grade()
  }

}
</script>

<style scoped>

</style>
